cumprod — Cumulative Product


\begin{rail}
CumProd : 'cumprod' '(' Matrix ')' ;
\end{rail}
cumprod takes a matrix argument, and produces another matrix of the same dimensions. Each element in the resultant matrix consists of the cumulative product of the that element and all previous elements in that column of the argument matrix. If the argument is either a row or column vector, the cumulative product is performed on that row or column. $\Longrightarrow$ This is not an built-in function. This function is normally loaded on start-up from the cumprod.r file in the standard rlib directory. Use of the -r option, incorrectly setting the RLAB_LIB_DIR environmental variable, or modifying cumprod.r may make this function unavailable.

Subsections